package com.pinyoumei.app.bean;

import com.contrarywind.interfaces.IPickerViewData;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by Administrator on 2021-09-06.
 * --------- 日期 ------- 维护人 ------------ 变更内容 --------
 * 2021-09-06        Administrator             新增Person类
 * 2021-09-06        Administrator             增加sex属性
 */
public class MyBillBean {

    /**
     * code : 1
     * errors : {}
     * msg : 操作成功
     * result : {"data_list":[{"reason":"幸运转盘中奖","amount":500,"deal_type":1,"add_time":"2021-09-01"}],"deal_kind_list":[{"deal_kind":0,"deal_kind_name":"全部"},{"deal_kind":5,"deal_kind_name":"团购红包"},{"deal_kind":6,"deal_kind_name":"开团广告红包"},{"deal_kind":9,"deal_kind_name":"幸运转盘抽奖"},{"deal_kind":7,"deal_kind_name":"开团未中退回"},{"deal_kind":8,"deal_kind_name":"智能连拼支付"},{"deal_kind":1,"deal_kind_name":"余额充值"},{"deal_kind":2,"deal_kind_name":"余额支付"},{"deal_kind":3,"deal_kind_name":"申请提现"},{"deal_kind":4,"deal_kind_name":"提现失败"}],"count_data":{"user_balance":500,"total_profit":500,"total_withdraw_amount":0}}
     */

    private int code;
    private ErrorsBean errors;
    private String msg;
    private ResultBean result;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public ErrorsBean getErrors() {
        return errors;
    }

    public void setErrors(ErrorsBean errors) {
        this.errors = errors;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public static class ErrorsBean {
    }

    public static class ResultBean {
        /**
         * data_list : [{"reason":"幸运转盘中奖","amount":500,"deal_type":1,"add_time":"2021-09-01"}]
         * deal_kind_list : [{"deal_kind":0,"deal_kind_name":"全部"},{"deal_kind":5,"deal_kind_name":"团购红包"},{"deal_kind":6,"deal_kind_name":"开团广告红包"},{"deal_kind":9,"deal_kind_name":"幸运转盘抽奖"},{"deal_kind":7,"deal_kind_name":"开团未中退回"},{"deal_kind":8,"deal_kind_name":"智能连拼支付"},{"deal_kind":1,"deal_kind_name":"余额充值"},{"deal_kind":2,"deal_kind_name":"余额支付"},{"deal_kind":3,"deal_kind_name":"申请提现"},{"deal_kind":4,"deal_kind_name":"提现失败"}]
         * count_data : {"user_balance":500,"total_profit":500,"total_withdraw_amount":0}
         */

        private CountDataBean count_data;
        private List<DataListBean> data_list;
        private List<DealKindListBean> deal_kind_list;

        public CountDataBean getCount_data() {
            return count_data;
        }

        public void setCount_data(CountDataBean count_data) {
            this.count_data = count_data;
        }

        public List<DataListBean> getData_list() {
            return data_list;
        }

        public void setData_list(List<DataListBean> data_list) {
            this.data_list = data_list;
        }

        public List<DealKindListBean> getDeal_kind_list() {
            return deal_kind_list;
        }

        public void setDeal_kind_list(List<DealKindListBean> deal_kind_list) {
            this.deal_kind_list = deal_kind_list;
        }

        public static class CountDataBean {
            /**
             * user_balance : 500
             * total_profit : 500
             * total_withdraw_amount : 0
             */

            private BigDecimal user_balance;
            private BigDecimal total_profit;
            private BigDecimal total_withdraw_amount;

            public BigDecimal getUser_balance() {
                return user_balance;
            }

            public void setUser_balance(BigDecimal user_balance) {
                this.user_balance = user_balance;
            }

            public BigDecimal getTotal_profit() {
                return total_profit;
            }

            public void setTotal_profit(BigDecimal total_profit) {
                this.total_profit = total_profit;
            }

            public BigDecimal getTotal_withdraw_amount() {
                return total_withdraw_amount;
            }

            public void setTotal_withdraw_amount(BigDecimal total_withdraw_amount) {
                this.total_withdraw_amount = total_withdraw_amount;
            }
        }

        public static class DataListBean {
            /**
             * reason : 幸运转盘中奖
             * amount : 500
             * deal_type : 1
             * add_time : 2021-09-01
             */

            private String reason;
            private BigDecimal amount;
            private int deal_type;
            private String add_time;
            private BigDecimal balance;

            public BigDecimal getBalance() {
                return balance;
            }

            public void setBalance(BigDecimal balance) {
                this.balance = balance;
            }

            public String getReason() {
                return reason;
            }

            public void setReason(String reason) {
                this.reason = reason;
            }

            public BigDecimal getAmount() {
                return amount;
            }

            public void setAmount(BigDecimal amount) {
                this.amount = amount;
            }

            public int getDeal_type() {
                return deal_type;
            }

            public void setDeal_type(int deal_type) {
                this.deal_type = deal_type;
            }

            public String getAdd_time() {
                return add_time;
            }

            public void setAdd_time(String add_time) {
                this.add_time = add_time;
            }
        }

        public static class DealKindListBean implements IPickerViewData {
            /**
             * deal_kind : 0
             * deal_kind_name : 全部
             */

            private int deal_kind;
            private String deal_kind_name;

            public int getDeal_kind() {
                return deal_kind;
            }

            public void setDeal_kind(int deal_kind) {
                this.deal_kind = deal_kind;
            }

            public String getDeal_kind_name() {
                return deal_kind_name;
            }

            public void setDeal_kind_name(String deal_kind_name) {
                this.deal_kind_name = deal_kind_name;
            }

            @Override
            public String getPickerViewText() {
                return deal_kind_name;
            }
        }
    }
}
